﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using WordSmith_V1.Library.Model;
using System.Web.WebPages.Html;

namespace WordSmith_V1.ViewModel
{
    public class BookChapterCreateViewModel
    {
        
        [Required]
        [Display(Name = "Title of this book (changeable later)")]
        public string BookTitle { get; set; }
        
        //Chapters Properties
        [Required]
        [Display(Name = "Description")]
        public  string Description { get; set; }

        [Required]
        [Display(Name = "Chapter Cover Image")]
        public  string CoverImage { get; set; }

        public string selectedGenre { get; set; }

        public IEnumerable<SelectListItem> Genres
        {
            /*get {
                List<Interest> genres = new List<Interest>();
                genres.Add(new Interest(1, "Arts & Photography"));
                genres.Add(new Interest(2, "Biographies & Memoirs"));
                genres.Add(new Interest(3, "Business & Investing"));
                genres.Add(new Interest(4, "Comics & Graphic Novels"));
                genres.Add(new Interest(5, "Computers & Internet"));

                return genres.Select(x => new SelectListItem { Value = x.Id.ToString(), Text = x.Name.ToString() });
            }*/
            get;
            set;
        }
        public string Tags { get; set; } //comma delimited string
//        public  bool EmailMe { get; set; }
        [Required]
        [Display(Name = "Chapter title")]
        public string ChapterTitle { get; set; }
        [Required]
        [Display(Name = "your writing (Chapter 1)")]
        public  string Writing { get; set; }
        public User Author { get; set; }
        public  int authorId { get; set; }

        /*SAMPLE LIST OF GENRES
         * 
         * 
         * "Arts & Photography 
" Biographies & Memoirs
" Business & Investing
"Children's Books Children's Books
" Comics & Graphic Novels
" Computers & Internet
"Cooking, Food & Wine Cooking, Food & Wine
"Drama Drama
"Entertainment Entertainment
"Gay & Lesbian Gay & Lesbian
"Health, Mind & Body Health, Mind & Body
"History History
"Home & Garden Home & Garden
"Horror Horror
"Humor Humor
"Literature & Fiction Literature & Fiction
"Mystery & Thrillers Mystery & Thrillers
"Nonfiction Nonfiction
"Outdoors & Nature Outdoors & Nature
"Parenting & Families Parenting & Families
"Poetry Poetry
"Professional & Technical Professional & Technical
"Reference Reference
"Religion & Spirituality Religion & Spirituality
"Romance Romance
"Science Science
"Science Fiction & Fantasy Science Fiction & Fantasy
"Sports Sports
"Travel Travel
         * */
    }
}